
      <%= form_tag(url_for(:controller => 'user', :action => 'login_action'), 
                        :method => 'post', :style => 'margin:0') %>
      <table width="100%" cellpadding="2" cellspacing="0" class="loginbox">
        <tr><td colspan="2" class="logintitle">会员登录</td></tr>
        <tr><td colspan="2" height="1"></td></tr>
        <tr>
          <td width="20%" align="right">帐号</td>
          <td width="80%"><%= text_field("user", "email", :size => "20", :maxlength => "50", :class => "input") %></td>    
        </tr>

        <tr>
          <td width="20%" align="right">密码</td>
          <td width="80%"><%= password_field("user", "password", :size => "20", :maxlength => "50", :class => "input") %></td>
        </tr>
       
        <tr><td colspan="2" align="center"><input type="checkbox" name="autoLogin"/>自动登录&nbsp;&nbsp;&nbsp;&nbsp;[<a href="/user/forget_password">忘记密码</a>]</td></tr>

        <tr><td colspan="2" height="1"></td></tr>
        <tr><td colspan="2" align="center"><input type="submit" class="button" onclick="javascript:doLogin()" value="登&nbsp;录"/>&nbsp;&nbsp;&nbsp;<input type="button" class="button" onclick="javascript:doRegister()" value="注&nbsp;册"/></td>
        </tr>
        <tr><td colspan="2" height="12"></td></tr>
      </table>
      <%= end_form_tag %>